package com.zch.map_;

import java.util.HashMap;
import java.util.Map;
import java.util.Set;

@SuppressWarnings({"all"})
public class MapSource {
    public static void main(String[] args) {
        Map map = new HashMap();
        map.put("no1", "韩顺平");//k-v
        map.put("no2", "张无忌");//k-v

        /*
            public Set<Map.Entry<K,V>> entrySet() {
                Set<Map.Entry<K,V>> es;
                return (es = entrySet) == null ? (entrySet = new EntrySet()) : es;
            }
            transient Set<Map.Entry<K,V>> entrySet;
            final class EntrySet extends AbstractSet<Map.Entry<K,V>>

         */
        Set set = map.entrySet();
        System.out.println(set.getClass());
        for (Object o : set) {
            System.out.println(o.getClass());
        }
    }
}
